package com.nuaa.service.change.inter;

import java.util.List;
import java.util.Map;

import com.nuaa.domain.change.ChangeEntity;
import com.nuaa.domain.change.ExpEntity;
import com.nuaa.domain.change.ProductEntity;
import com.nuaa.domain.change.SupplyEntity;
import com.nuaa.formmodel.ChanHandForm;
import com.nuaa.utils.AjaxMsg;
import com.nuaa.utils.DataGrid;
import com.nuaa.utils.PageInfo;

public interface ChangeServiceInter {
	
	public AjaxMsg saveOrder(ChangeEntity entity);
	
	public AjaxMsg saveModOrder(ChangeEntity entity);
	
	public AjaxMsg saveProducts(List<ProductEntity> entityList);
	
	public AjaxMsg saveExps(List<ExpEntity> list);

	public DataGrid<Map<String, Object>> getChangeOrders(PageInfo pager,String customer_no,String orderNo,String tmFrom,String tmTo);

	//public DataGrid<Map<String, Object>> getAllChangeOrders(PageInfo pager,String custString orderNo,String tmFrom,String tmTo);
	
	public AjaxMsg saveSupply(SupplyEntity entity);

	public DataGrid<Map<String, Object>> getAllSupInfo(PageInfo pager);
	/**
	 * 根据id获取对象
	 * @param id
	 * @return 
	 */
	public ChangeEntity getById(Integer id);

	/**
	 * 更新change
	 * @param change
	 */
	public void update(ChangeEntity change);

	/**
	 * 获取未审核订单
	 * @param pager
	 * @return
	 */
	public DataGrid<Map<String, Object>> getAllUncheck(PageInfo pager);
	/**
	 * 根据订单号获取订单信息
	 * @param order_no
	 * @return
	 */
	public ChangeEntity getByOrderNo(String order_no);
	/**
	 * 根据订单号获取订单信息
	 * @param order_no
	 * @return
	 */
	public SupplyEntity getSupByOrderNo(String order_no);
	/**
	 * 提交操作内容
	 * @param ids
	 * @param form
	 * @return
	 */
	public AjaxMsg saveHand(String id,ChanHandForm form);

	public DataGrid<Map<String, Object>> getWaitChangeOrders(PageInfo pager, String customer_no, String orderNo, String tmFrom,
			String tmTo);

	public DataGrid<Map<String, Object>> getProceChangeOrders(PageInfo pager, String customer_no, String orderNo, String tmFrom,
			String tmTo);
	
	public DataGrid<Map<String, Object>> getFinishChangeOrders(PageInfo pager, String customer_no, String orderNo,
			String tmFrom, String tmTo);
}
